#ifndef USER_H
#define USER_H
#include "Constants.h"

typedef struct _user{
    /* data */
    int uid;
    char uname[31];
    char salt[31];
    char cryptpwd[151];
    char depository[101];

}User;

User* createUser(int uid, const char* uname, const char* salt, const char* cryptpwd, const char* depository);
void setUid(User* user, int uid);
int getUid(const User* user);

void setUname(User* user, const char* uname);
const char* getUname(const User* user);

void setSalt(User* user, const char* salt);
const char* getSalt(const User* user);

void setCryptpwd(User* user, const char* cryptpwd);
const char* getCryptpwd(const User* user);

void setDepository(User* user, const char* depository);
const char* getDepository(const User* user);

void destroyUser(User* user);


#endif // !USER_H
